home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / database / zpatch.zip / ZIPPATCH.BAT < prev   
DOS Batch File  |  1995-12-08  |  4KB  |  110 lines

  1. @echo off
  2. rem
  3. rem 
  4. rem  QuickBooks Deluxe Zip Code Directory License Patch
  5. rem  Batch File installer for versions 3.0, 3.1 and Pro
  6. rem  online version
  7. rem
  8. rem
  9.  
  10.  
  11.  
  12. echo ╔═══════════════════════════════════════════════════════════════════════════╗
  13. echo ║                        QuickBooks Deluxe for Windows                      ║
  14. echo ║                   CD-ROM Zip Code Directory License Patch                 ║
  15. echo ╠═══════════════════════════════════════════════════════════════════════════╣
  16. echo ║                                                                           ║
  17.  
  18. if not exist zippatch.bat goto needdisk
  19. if not exist extra40d.exe goto needexe
  20. if "%1"=="" goto nodest
  21. goto install
  22.  
  23. :needdisk
  24. echo ║ This install program must be run from the current directory.  Please make ║
  25. echo ║ sure that ZIPPATCH.BAT and the file EXTRA40D.EXE are both in the current  ║
  26. echo ║ directory.                                                                ║
  27.  
  28. goto endbatch
  29.  
  30. :needexe
  31. echo ║ Install can not find the file EXTRA40D.EXE.  Please make sure that both   ║
  32. echo ║ EXTRA40D.EXE and ZIPPATCH.BAT are in the current directory.               ║
  33.  
  34. goto endbatch
  35.  
  36.  
  37. :nodest
  38.  
  39. if exist ziw.cfg goto unspec
  40. if exist zip.exe goto vangogh
  41.  
  42. echo ║ This installer will patch the Zip Code Directory shipped with your CD-ROM ║
  43. echo ║ version of QuickBooks.  This patch removes the 1 year limit imposed by    ║
  44. echo ║ the software.                                                             ║
  45. echo ║                                                                           ║
  46. echo ║ To use this patch, QuickBooks must not be running.  Please make sure that ║
  47. echo ║ either Windows is not running or neither QuickBooks nor any of its        ║
  48. echo ║ components are in the Task List (Windows 3.1) or on the TaskBar (Windows  ║
  49. echo ║ 95).                                                                      ║
  50. echo ║                                                                           ║
  51. echo ║ Make sure the files ZIPPATCH.BAT and EXTRA40D.EXE are in the QuickBooks   ║
  52. echo ║ directory.  Also ensure that the QuickBooks directory is the current      ║
  53. echo ║ directory, and type ZIPPATCH at the DOS prompt.                           ║
  54. goto endbatch
  55.  
  56. :unspec
  57.  
  58. echo ║ Installing Zip Code Directory License Patch for QuickBooks for Windows    ║
  59. echo ║                                                                           ║
  60. echo ╚═══════════════════════════════════════════════════════════════════════════╝
  61.  
  62. extra40d .
  63.  
  64. if errorlevel 0 goto OkEndBatch
  65. goto BadTry
  66.  
  67. :install
  68.  
  69. if exist %1\zip.exe goto vangogh
  70. if not exist %1\ziw.cfg goto nozip
  71.  
  72. echo ║ Installing Zip Code Directory License Patch for QuickBooks for Windows    ║
  73. echo ║                                                                           ║
  74. echo ╚═══════════════════════════════════════════════════════════════════════════╝
  75.  
  76. extra40d %1
  77.  
  78. if errorlevel 0 goto OkEndBatch
  79.  
  80. :BadTry
  81. echo ╔═══════════════════════════════════════════════════════════════════════════╗
  82. echo ║                                                                           ║
  83. echo ║ Could not install the patch for the Zip Code Directory.  Please be sure   ║
  84. echo ║ that you specified the location of a valid installation of the Zip Code   ║
  85. echo ║ directory supplied with the QuickBooks CD-ROM.                            ║
  86. goto endbatch
  87.  
  88. :nozip
  89. echo ║ Can't locate the Zip Code Directory for QuickBooks Deluxe in the          ║
  90. echo ║ directory specified.  Make sure that the current directory contains       ║
  91. echo ║ QuickBooks and the files ZIPPATCH.BAT and EXTRA40D.EXE.  Then type        ║
  92. echo ║ ZIPPATCH at the DOS prompt.                                               ║
  93. goto endbatch
  94.  
  95. :vangogh
  96. echo ║                            No Update Necessary                            ║
  97. echo ║                                                                           ║
  98. echo ║ Install found a later edition of QuickBooks in the target directory.      ║
  99. echo ║ This patch is only necessary for older editions of the Zip Code           ║
  100. echo ║ directory.  Your installation does not need to be updated.                ║
  101. goto endbatch
  102.  
  103. :endbatch
  104. echo ║                                                                           ║
  105. echo ╚═══════════════════════════════════════════════════════════════════════════╝
  106. echo.
  107. rem fall through....
  108.  
  109. :OkEndBatch
  110.